<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="navbar">
	<h2>LALA租房网</h2>

	<ul class="breadcrumb" style="margin: 30px 0px 0px 0px;">
		<li><a href="index">首页</a></li>
		<li><a href="#"></a></li>
		<c:if test="${!empty user}">
			<li class="pull-right"><c:choose>
					<c:when test="${state==1 }">
						<a href="getMessage?id=${user.id }">您有留言，请查看</a>
					</c:when>
					<c:otherwise>
						<a href="#">无留言</a>
					</c:otherwise>
				</c:choose></li>
		</c:if>
		<li class="pull-right"><a href="register">注册</a></li>
		<li class="pull-right"><a href="login">登陆</a></li>
		<c:if test="${!empty user}">
			<li class="pull-right"><a href="let">添加出租信息</a></li>
			<li class="pull-right">欢迎，${user.name }</li>
		</c:if>
	</ul>
</div>
